﻿using MyCode.Project.Services;
using Quartz;

namespace MyCode.Project.ScheduleTask.Jobs
{
    /// <summary>
    /// 每30分钟重新尝试发送当天的消息给会员
    /// </summary>
    public class RetrySenSmsJob : IJob
    {

		private readonly IWorkProcessAsyncService  _workProcessService;

		public RetrySenSmsJob(IWorkProcessAsyncService workProcessService)
		{
			_workProcessService = workProcessService;
		}


		public void Execute(IJobExecutionContext context)
        {
            _workProcessService.RetrySenSms();
        }
    }
}

